//
//  throughNotesTableViewCell.m
//  A段项目,漫画
//
//  Created by dllo on 15/4/30.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "throughNotesTableViewCell.h"
#define WIDTH 200
#define HEIGHT 80
@implementation throughNotesTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.layer.borderWidth = 1;
        self.layer.cornerRadius = 5;
        self.layer.borderColor = [UIColor greenColor].CGColor;
        //  53  71
        self.headImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.headImage];
        [self.headImage release];
        
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel release];
        
        self.throughMark = [[UILabel alloc] init];
        [self.contentView addSubview:self.throughMark];
        [self.throughMark release];
    }
    return self;
}
- (void)layoutSubviews{
    // 200  80
   //  53  71
    self.headImage.frame = CGRectMake(5, 5, 53, 71);
    
    self.titleLabel.frame = CGRectMake(70, 0, WIDTH - 80, 60);
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.numberOfLines = 0;
    self.titleLabel.font = [UIFont systemFontOfSize:16];
    
    
    self.throughMark.frame = CGRectMake(70, 60, WIDTH - 80, 20);
    self.throughMark.textAlignment = NSTextAlignmentCenter;
    self.throughMark.numberOfLines = 0;
    self.throughMark.font = [UIFont systemFontOfSize:12];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
